import { createApp } from 'vue'
import App from './App.vue'
import { store, key } from './store'
import router from './router'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
// import '@/assets/styles/global.less'
const app = createApp(App)
app.use(store, key)
app.use(router)
// 指令
app.directive('highlight', {
  beforeMount(el, binding, vnode) {
    el.style.background = binding.value
    el.disabled = true
  },
  beforeUpdate() {
    console.log('指令元素要更新了')
  },
})
app.use(Antd)
app.mount('#app')
